package com.coolgor.axnut.dto.lordsee;

import com.coolgor.axnut.entity.lordsee.ScanIPResult;
import com.coolgor.axnut.enums.lordsee.ScanIPResultOperationStateEnum;

import java.util.List;

public class ScanIPResultExecution {
	// 结果状态
	private int state;

	// 状态标识
	private String stateInfo;

	// 执行结果的数量
	private int count;

	// 操作的对象(增删改的时候用到)
	private ScanIPResult scanIPResult;

	// 获取的结果列表(查询列表的时候使用)
	private List<ScanIPResult> list;

	public ScanIPResultExecution() {	}

	// 操作失败的时候使用的构造器
	public ScanIPResultExecution(ScanIPResultOperationStateEnum stateEnum) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
	}

	// 增删改 操作成功的时候使用的构造器
	public ScanIPResultExecution(ScanIPResultOperationStateEnum stateEnum, ScanIPResult scanIPResult) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.scanIPResult = scanIPResult;
	}

	// 查询 操作成功的时候使用的构造器
	public ScanIPResultExecution(ScanIPResultOperationStateEnum stateEnum, List<ScanIPResult> list) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.list = list;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getStateInfo() {
		return stateInfo;
	}

	public void setStateInfo(String stateInfo) {
		this.stateInfo = stateInfo;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public ScanIPResult getScanIPResult() {
		return scanIPResult;
	}

	public void setScanIPResult(ScanIPResult scanIPResult) {
		this.scanIPResult = scanIPResult;
	}

	public List<ScanIPResult> getList() {
		return list;
	}

	public void setList(List<ScanIPResult> list) {
		this.list = list;
	}

}
